package com.sixteen.ordering_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sixteen.ordering_system.mapper.DishCartMapper;
import com.sixteen.ordering_system.pojo.DishCart;
import com.sixteen.ordering_system.service.IDishCartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sixteen.ordering_system.service.IDishService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sixteen
 * @since 2022-09-16
 */
//@Service
public class DishCartServiceImpl  implements IDishCartService {
//    @Autowired
//    private DishCartMapper dishCartMapper;
//    @Autowired
//    private IDishService iDishService;

    //    插入购物车数据
//    private void insertCart(DishCart dishCart){
//        Integer rows = dishCartMapper.insertCart(dishCart);
////        if (rows != 1){
////            throw new InsertException()
////        }
//    }
    //    修改购物车中菜品的数量
//    private void updateCart(@Param("number") Integer number,
//                        @Param("dishId") Integer dishId ,
//                        @Param("sys_user_id") Integer sysUserId){
//
//    }
    //    查询用户在购物车添加的某商品详情
//    private DishCart showCart(Integer DishId,Integer sysUserId,String dishName,
//                              String summary,String price, String img){
//        return dishCartMapper.showCart(DishId,sysUserId);
//    }

    @Override
    public boolean save(DishCart dishCart) {
        return false;
    }

    @Override
    public boolean saveBatch(Collection<DishCart> collection, int i) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<DishCart> collection) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<DishCart> collection, int i) {
        return false;
    }

    @Override
    public boolean removeById(Serializable serializable) {
        return false;
    }

    @Override
    public boolean removeByMap(Map<String, Object> map) {
        return false;
    }

    @Override
    public boolean remove(Wrapper<DishCart> wrapper) {
        return false;
    }

    @Override
    public boolean removeByIds(Collection<? extends Serializable> collection) {
        return false;
    }

    @Override
    public boolean updateById(DishCart dishCart) {
        return false;
    }

    @Override
    public boolean update(DishCart dishCart, Wrapper<DishCart> wrapper) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<DishCart> collection, int i) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(DishCart dishCart) {
        return false;
    }

    @Override
    public DishCart getById(Serializable serializable) {
        return null;
    }

    @Override
    public Collection<DishCart> listByIds(Collection<? extends Serializable> collection) {
        return null;
    }

    @Override
    public Collection<DishCart> listByMap(Map<String, Object> map) {
        return null;
    }

    @Override
    public DishCart getOne(Wrapper<DishCart> wrapper, boolean b) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public Object getObj(Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public int count(Wrapper<DishCart> wrapper) {
        return 0;
    }

    @Override
    public List<DishCart> list(Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public IPage<DishCart> page(IPage<DishCart> iPage, Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public List<Map<String, Object>> listMaps(Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public List<Object> listObjs(Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public IPage<Map<String, Object>> pageMaps(IPage<DishCart> iPage, Wrapper<DishCart> wrapper) {
        return null;
    }

    @Override
    public void addToDishCart(Integer sysUserId, Integer dishId, Integer number) {

    }
}
